<?php

/*	Created by Alexander Alexandrov aka SS

			hazg@mail.ru				*/
define('SSLIB_Text', TRUE);

class Text
{
	static function MakeDottedNumber($num, $separator = ".", $step = 3)
	{
		$text = strrev($num);
		$text = chunk_split($text, $step, $separator);
		$text = trim($text, $separator);
		$text = strrev($text);
		return $text;
		//return strrev(trim(chunk_split(strrev($num), $step, $separator), $separator));
	}
	static function CutText($text, $len = 200, $ender = "...")
	{
		return substr($text, 0, $len).((strlen($text) > ($len - 1))?$ender:"");
	}
	static function Lower($text)
	{
		return strtolower($text);
	}
}

?>